package com.ctbri.arrays;

import java.util.Arrays;

class Test {
	public int value;
	public Test(int value) {
		this.value = value;
	}
	
	@Override
	public boolean equals(Object other) {
		if(other == null || !(other instanceof Test))
			return false;
		Test t = (Test)other;
		return value == t.value; 
	}
}

public class Ex19 {

	public static void main(String[] args) {
		Test[] t1 = new Test[4];
		Test[] t2 = new Test[4];
		Arrays.fill(t1, new Test(10));
		Arrays.fill(t2, new Test(10));
		System.out.println(Arrays.equals(t1, t2));
		
	}

}
